package com.mva.common;

import Codes_DAO.CodeTypeDAO;
import Codes_DAO.CodeTypeDB;
import Codes_DAO.CodeValueDAO;
import Codes_DAO.CodeValueDB;
import User_DAO.UserDAO;
import User_DAO.UserDB;

public class DAOFactory
  {
   // This method maps the UserDAO interface
   // to the appropriate data storage mechanism
   public static UserDAO getUserDAO ()
	 {
	  UserDAO uDAO = new UserDB();
	  return uDAO;
	 }

   // This method maps the CodeTypeDAO interface
   // to the appropriate data storage mechanism
   public static CodeTypeDAO getCodeTypeDAO ()
	 {
	  CodeTypeDAO ctDAO = new CodeTypeDB();
	  return ctDAO;
	 }

   // This method maps the CodeValueDAO interface
   // to the appropriate data storage mechanism
   public static CodeValueDAO getCodeValueDAO ()
	 {
	  CodeValueDAO cvDAO = new CodeValueDB();
	  return cvDAO;
	 }
  }